using System;
using Project.Utilities.Abstractions;

namespace Project.Utilities
{
    public class PrimaryStatPoints : ReactiveProperty<int>, IReadOnlyPrimaryStatPoints
    {
        public PrimaryStatPoints(int minValue, int maxValue) :
            base(minValue, v => Math.Clamp(v, minValue, maxValue))
        {
            MinValue = minValue;
            MaxValue = maxValue;
        }

        public int MinValue { get; private set; }
        public int MaxValue { get; private set; }
    }
}
